package com.ict.web.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * 抽取规则对象 yzq_extract_rule
 * 
 * @author xc
 * @date 2022-02-25
 */
@Data
@ApiModel(value = "抽取规则对象")
@TableName("yzq_extract_rule")
@AllArgsConstructor
@NoArgsConstructor
public class ExtractRule extends Model<ExtractRule> implements Serializable
{
    private static final long serialVersionUID = 1L;

    /**抽取类型 1:按条件抽取*/
    public final static String EXTRACT_TYPE_CONDITION = "1";
    /**抽取类型 2：随机抽取*/
    public final static String EXTRACT_TYPE_RANDOM = "2";
    /**抽取类型 3：指定专家*/
    public final static String EXTRACT_TYPE_APPOINT = "3";

    /** 规则表id */
    @ApiModelProperty(value = "规则表id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableId
    private Long extractId;

    /** 评审id */
    @ApiModelProperty(value = "评审id，varchar：100")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long reviewId;

    /** 抽取类型{1:按条件抽取 2：随机抽取 3：指定专家} */
    @ApiModelProperty(value = "抽取类型{1:按条件抽取 2：随机抽取 3：指定专家}")
    private String extractType;

    /** 人数 */
    @ApiModelProperty(value = "人数，varchar：2")
    private Integer peopleNumber;

    /** 抽取规则描述 */
    @ApiModelProperty(value = "抽取规则描述，varchar：50")
    private String extractRuleDesc;

    /** 创建时间 */
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    /** 修改时间 */
    @ApiModelProperty(value = "修改时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

}
